package com.zhouyu.config.listener;

import org.springframework.stereotype.Component;

import javax.batch.api.chunk.listener.ItemReadListener;

import lombok.extern.log4j.Log4j2;

/**
 * @Description:读入异常监听处理
 */
@Component
@Log4j2
public class ItemReadEreorlistenler implements ItemReadListener {
  @Override
  public void beforeRead() throws Exception {

  }

  @Override
  public void afterRead(Object o) throws Exception {

  }

  @Override
  public void onReadError(Exception e) throws Exception {
      log.error("读取异常,reason:{}",e.getMessage());
  }
}
